class Desired_Config():
    def smartDesired(self):
        """
        smart连接配置
        :return:
        """
        self.desired_caps = {}
        self.desired_caps['platformName'] = 'Android'
        self.desired_caps['platformVersion'] = '5.1.1'
        self.desired_caps['deviceName'] = '127.0.0.1:21503'
        self.desired_caps['appPackage'] = 'com.guokr.mentor'
        self.desired_caps['appActivity'] = '.activity.MainActivity'
        self.desired_caps['noReset'] = 'true'
        return self.desired_caps

    def iscanDesired(self):
        """
        iscan连接配置
        :return:
        """
        self.desired_caps = {}
        self.desired_caps['platformName'] = 'Android'
        # self.desired_caps['platformVersion'] = '8.0.0'
        self.desired_caps['version'] = '7.1.1'
        self.desired_caps['deviceName'] = 'HGAFQ94U'
        # self.desired_caps['deviceName'] = 'VPL6R18A29002470'

        self.desired_caps['appPackage'] = 'cn.com.fwd.iscan'
        self.desired_caps['appActivity'] = 'cn.com.fwd.iscan.activity.SplashActivity'
        self.desired_caps['noReset'] = 'true'
        self.desired_caps['unicodeKeyboard'] = 'true'  # 使用unicode编码方式发送字符串
        self.desired_caps['resetKeyboard'] = 'true'  # 隐藏键盘
        # desired_caps['app'] = PATH('D:\\qq.apk')#被测试的App在电脑上的位置
        self.desired_caps['recreateChromeDriverSessions'] = 'True'
        # desired_caps['chromedriverExecutableDir'] = r'D:\workspace\webdriver\chrome\2.18'
        return self.desired_caps
